#!/usr/bin/python3

def factor_for(n):
	f = 1
	for i in range(1, n + 1):
		f *= i
	return f

while True:
	n = int (input ('N=?'))
	print (n, '!=', factor_for(n))